package com.lq.ecoldchain.ui.main.introduce

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2018/12/26 0026  16:30
*function by lq
*/
val introductionKodeinModule = Kodein.Module("Introduction_Kodein_Module)") {
    bind<IntroductionViewModel>() with scoped(AndroidLifecycleScope).singleton {
        IntroductionViewModel()
    }
    bind<IntroductionDelegate>() with scoped(AndroidLifecycleScope).singleton {
        IntroductionDelegate(
                viewModel = instance()
        )
    }
}